package com.fjec.activity.util;

import com.fjec.activity.feign.MarketClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class MarketUtil {
    @Autowired
    private MarketClient marketClient;

    public Map<String, Object> getMarketByCode(Integer markCode) {
        Map<String, Object> market = marketClient.getMarketByCode(markCode);
        return market;
    }
}
